package com.guyaning.deyson_core.core.ui.recycler;

import java.util.ArrayList;

/**
 * Created by Administrator on 2018/6/5.
 */
public abstract class DataConverter {

    protected final ArrayList<MultipleItemBean>  BEANS = new ArrayList<>();

    private String mJsonData = null;

    public abstract ArrayList<MultipleItemBean>  convert();


    public DataConverter setJson(String json){
        this.mJsonData = json;
        return this;
    }

    public String getJson(){
        if(mJsonData==null || mJsonData.isEmpty()){
            throw new NullPointerException("Data is not null");
        }

        return mJsonData;
    }

}
